﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<table border="1">
    <tr>
        <td colspan="4">
            <% If ViewData("MeasureList") IsNot Nothing Then%>
            <% Html.RenderPartial("~/Views/Shared/Grids/MeasureGrid.ascx")%>
            <% Html.RenderPartial("~/Views/Shared/Dialogs/MeasureDialog.ascx")%>
            <% End If%>
        </td>
    </tr>
    <tr>
        <th>
            Work Order #:
        </th>
        <td>
            <%= ViewData("NextWorkOrderID")%>
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <th>
            Type of Work Order:
        </th>
        <td>
            <%= Html.DropDownList("RequirementType")%>
        </td>
        <th>
            &nbsp;
        </th>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <th>
            Due Date & Time:
        </th>
        <td>
            <div class="calendar-field">
                <%= Html.TextBox("txtDate", Nothing, New With {.class = "text", .onkeydown="return false;"})%>
                <img class="ui-datepicker-trigger calendar-button" src="../../Content/img/calendar.gif"
                    alt="..." title="..." onclick="$('#txtDate').click();" />
            </div>
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <th>
            Additional Details:
        </th>
        <td>
            <%= Html.TextArea("txtDetails", New With {.class = "normal-width"})%>
        </td>
        <td >
            &nbsp;
        </td>
        <td class="bottom">
            <%= Html.DropDownList("ReviewType")%>
        </td>
    </tr>
    <tr>
        <th class="top">
            Assigned To Group:
        </th>
        <td>
            <% Html.RenderPartial("~/Views/Shared/Grids/FilteredGroupGrid.ascx", String.Empty)%>
        </td>
        <th class="top">
            Review By Group:
        </th>
        <td>
        <% Html.RenderPartial("~/Views/Shared/Grids/FilteredGroupGrid.ascx", "Review")%>
        </td>
    </tr>
    <tr>
        <td colspan = "2">
            <span id = "sError" class = "field-validation-error">
                &nbsp;
            </span>
        </td>
        <td colspan="2">
            <p class="right">
                <input type="submit" class="button" value="Create" onclick = "return validate()" />
            </p>
        </td>
    </tr>
</table>
